package com.ewei.web.authority.shiro.stateless;

import org.apache.shiro.authc.AuthenticationToken;
/**
 * 无状态登录token
 * @author David
 *
 */
@SuppressWarnings("serial")
public class StatelessToken implements AuthenticationToken{
	private String username;
	private String tokenValue;
	private String auth;
	public StatelessToken(String username,String tokenValue,String auth){
		this.username = username;
		this.tokenValue = tokenValue;
		this.auth = auth;
	}
	@Override
	public Object getPrincipal() {
		return username;
	}

	@Override
	public Object getCredentials() {
		return tokenValue;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getTokenValue() {
		return tokenValue;
	}

	public void setTokenValue(String tokenValue) {
		this.tokenValue = tokenValue;
	}
	public String getAuth() {
		return auth;
	}
	public void setAuth(String auth) {
		this.auth = auth;
	}
	
	
}
